/*
 * Platform.h
 *
 *	Author: stravant
 *	Description:
 *		
 */

#ifndef PLATFORM_H_
#define PLATFORM_H_

// Platform detection
#if defined(__APPLE__)
#define OS_MACOSX 1
#elif defined(__linux__)
#define OS_LINUX 1
#elif defined(_WIN32)
#define OS_WIN 1
#elif defined(__FreeBSD__)
#define OS_FREEBSD 1
#elif defined(__OpenBSD__)
#define OS_OPENBSD 1
#elif defined(__sun)
#define OS_SOLARIS 1
#else
#error Platform.h: Unknown platform
#endif

#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
    defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_NACL)
#define OS_POSIX 1
#endif

#endif /* PLATFORM_H_ */
